﻿namespace KingerRobot.MexicoSailunMDC.Spi;
/// <summary>
/// 设备服务
/// </summary>
public interface IEquiqService
{
    /// <summary>
    /// 修改设备警告
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="qlarmNo"></param>
    /// <returns></returns>
    int UpdateAlarm(long equipId, int qlarmNo);
    /// <summary>
    /// 修改设备警告V2
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <returns></returns>
    int UpdateAlarmV2(long equipId, int alarmNo, string alarmCode, string alarmMsg);
    /// <summary>
    /// 修改设备报警V2 增加任务流水号
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <param name="taskNo"></param>
    /// <returns></returns>
    int UpdateAlarmV3(long equipId, int alarmNo, string alarmCode, string alarmMsg, int? taskNo);
    /// <summary>
    /// 修改设备报警V3 增加任务两个流水号
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <param name="taskNo"></param>
    /// <param name="taskNo2"></param>
    /// <returns></returns>
    int UpdateAlarmV4(long equipId, int alarmNo, string alarmCode, string alarmMsg, int? taskNo, int? taskNo2);
    /// <summary>
    /// 设备状态
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    PORcsEquip GetEquipEnableById(long id);
    /// <summary>
    /// Ping 设备IP地址
    /// </summary>
    void PingEquip();
}
